<template>
  <div class="box-container">
    <el-carousel
      trigger="click"
      :height="state.isMobile ? '300px' : '60vh'"
      :autoplay="false"
      arrow="never"
    >
      <el-carousel-item>
        <div class="top-bg">
          <!-- <div class="title1">公司介绍</div>
          <div class="title2">COMPANY INTRODUCTION</div> -->
        </div>
      </el-carousel-item>
      <!-- <el-carousel-item>
        <div class="top-bg">
          <div class="title1">-公司介绍-</div>
          <div class="title2">COMPANY INTRODUCTION</div>
        </div>
      </el-carousel-item> -->
    </el-carousel>

    <div class="introduction">
      <div class="left">
        <div class="title">武汉华商知了信息技术有限公司</div>
        <div class="line"></div>
        <div class="desc">
          武汉华商知了信息技术有限公司成立于2023年，总部及研发中心设立于九省通衢的武汉市，是科大讯飞AI产业加速中心的深度合作伙伴。
          <br />
          <br />
          旗下“华商直聊”小程序&APP，是一款全国首创互联网“直聊”模式的认证、检测、咨询、培训的在线企服产品。
		  我们致力于用互联网、AI和大数据等前沿科技，提升TIC行业的综合效率，助力企业获资质、找客户、结人脉！
          <br />
         <!-- <br />
          我们致力于用互联网、AI、大数据、人工智能等前沿科技提升TIC行业的综合效率。 -->
        </div>
      </div>
      <div class="right" v-if="!state.isMobile">
        <div class="introduction-bg"></div>
      </div>
    </div>

    <div class="information">
      <div class="top">
        <div class="first">
          <div class="title">使命</div>
          <div class="content">助力企业获取资质、连接客户、建立人脉！</div>
        </div>
        <div class="second">
          <div class="title">愿景</div>
          <div class="content">成为用户首选的在线商业服务平台</div>
        </div>
        <div class="third">
          <div class="title">价值观</div>
          <div class="content">
            <div class="box1">
              <div class="icon icon1"></div>
              <div class="desc">用户至上</div>
            </div>
            <div class="box2">
              <div class="icon icon2"></div>
              <div class="desc">团队合作</div>
            </div>
            <div class="box3">
              <div class="icon icon3"></div>
              <div class="desc">科技创新</div>
            </div>
            <div class="box4">
              <div class="icon icon4"></div>
              <div class="desc">和气生财</div>
            </div>
          </div>
        </div>
      </div>

      <div class="footer">
        <div class="line1">Copyright@{{showYear}} CNBOSS 版权所有-武汉华商知了信息技术有限公司</div>
        <!-- <div class="line2">备案 / 许可证编号: 沪ICP备14024387号-1 沪公网安备 31011402003939号</div> -->
        <div class="line2">
          <a href="https://beian.miit.gov.cn/" style="color: white;" target="_blank">
            备案 / 许可证编号: 鄂ICP备2023024382号-1
          </a>
          <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42010302002575" style="color: white;" target="_blank">
            鄂公网安备42010302002575号
          </a>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useWindowSize } from '@vueuse/core'
import { reactive, watch } from 'vue'
let showYear = new Date().getFullYear();
  console.info("----showYear----",showYear)
const { width } = useWindowSize()
const state = reactive({
  isMobile: false
})

watch(
  () => width.value,
  (val) => {
    if (val < 1024) {
      state.isMobile = true
    } else {
      state.isMobile = false
    }
  },
  { immediate: true }
)
</script>

<style lang="scss" scoped>
.box-container {
  overflow-x: hidden;
  height: 100%;
  width: 100%;

  .top-bg {
    width: 100%;
    height: 40rem;
    background: url('../assets/images/about/pic_top@2x.png') no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;

    .title1 {
      font-size: 3rem;
      color: #fff;
      position: relative;
      top: 12rem;
    }
    .title2 {
      font-size: 3.5rem;
      color: #ffffff77;
      position: relative;
      top: 11rem;
    }
  }

  @media screen and (max-width: 1024px) {
    .top-bg {
      height: 300px;
      background: url('../assets/images/about/mb_pic_top@2x.png') no-repeat;
      background-position: center;
      background-size: cover;
      .title1 {
        font-size: 2rem;
      }
      .title2 {
        font-size: 2.5rem;
      }
    }
  }

  .introduction {
    display: flex;
    flex-direction: row;
    justify-content: center;
    .left {
      position: relative;
      width: 46%;
      padding: 4rem 4rem 4rem 5rem;
      .title {
        font-family: 'Microsoft YaHei-Bold';
        color: #303133;
        font-size: 2rem;
        font-weight: 600;
      }
      .line {
        margin: 1rem 0 1rem 0;
        width: 3rem;
        height: 2px;
        background-color: #606266;
      }
      .desc {
        font-family: 'Microsoft YaHei-Regular';
        font-size: 1.5rem;
        color: #606266;
      }
    }
    .right {
      position: relative;
      padding: 3rem;
      width: 45%;
      .introduction-bg {
        height: 20rem;
        background: url('../assets/images/home/introduction1.png') no-repeat;
        background-position: center;
        background-size: contain;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    .introduction {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .left {
        position: relative;
        width: 100%;
        padding: 2rem 1rem;
        .title {
          color: #303133;
          font-size: 1.2rem;
          font-weight: 600;
        }
        .line {
          margin: 1rem 0 1rem 0;
          width: 2rem;
          height: 2px;
          background-color: #606266;
        }
        .desc {
          font-size: 1rem;
          color: #606266;
        }
      }
      .right {
        position: relative;
        padding: 0 2rem 2rem 2rem;
        width: 100%;
        .introduction-bg {
          height: 20rem;
          background: url('../assets/images/home/introduction1.png') no-repeat;
          background-position: center;
          background-size: contain;
        }
      }
    }
  }

  .information {
    position: relative;
    height: 43rem;
    width: 100%;
    background: url('../assets/images/home/information2.png') no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;

    .top {
      height: 35rem;
      width: 65%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-evenly;

      .title {
        font-family: 'Microsoft YaHei-Bold';
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 1rem;
      }
      .content {
        font-family: 'Microsoft YaHei-Regular';
        font-size: 1.5rem;
        color: #fafafad1;
        text-align: center;
        padding: 0 1rem;
      }
      .first {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .second {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .third {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        .content {
          display: flex;
          flex-direction: row;
          width: 100%;

          & > div {
            width: 25%;
            display: flex;
            justify-content: center;
          }
          .icon {
            width: 2rem;
            height: 2rem;

            margin-right: 0.5rem;
          }

          .icon1 {
            background: url('../assets/images/home/ICON_YONGHU@2x.png') no-repeat;
            background-position: center;
            background-size: contain;
          }
          .icon2 {
            background: url('../assets/images/home/ICON_TEAM@2x.png') no-repeat;
            background-position: center;
            background-size: contain;
          }
          .icon3 {
            background: url('../assets/images/home/ICON_KEJI@2x.png') no-repeat;
            background-position: center;
            background-size: contain;
          }
          .icon4 {
            background: url('../assets/images/home/ICON_MONEY@2x.png') no-repeat;
            background-position: center;
            background-size: contain;
          }
        }
      }
    }

    .footer {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 5rem;
      padding: 4rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      color: #fafafad1;
      text-align: center;
      .line1 {
        margin-bottom: 0.5rem;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    .information {
      height: 33rem;
      background: url('../assets/images/about/pic_bg_xia@2x.png') no-repeat;
      background-size: 100% 100%;
      .top {
        height: 28rem;
        width: 100%;
        .title {
          margin-bottom: 0.6rem;
          font-size: 1.2rem;
        }
        .content {
          font-size: 1rem;
        }

        .third {
          .content {
            flex-wrap: wrap;
            padding: 0 2rem;
            & > div {
              width: 50%;
              padding: 0.5rem 0;
            }
            .icon {
              width: 1.3rem;
              height: 1.3rem;
            }
          }
        }
      }
      .footer {
        height: 7rem;
        font-size: 0.8rem;
        background-color: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 2rem 1rem 3rem 1rem;
      }
    }
  }
}
.line2>a{
  text-decoration: none;
}
.line2>a:hover{
  text-decoration: underline;
}
</style>
